home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
-
- if [ "$1" = configure ]; then
- # create a default file for disabling laptop-mode on powerpc, since there
- # is no acpi-support package to do it for us
- F=/etc/default/laptop-mode
- if [ ! -e $F ] && [ "`uname -m`" = ppc ]; then
- echo 'ENABLE_LAPTOP_MODE=false' > $F
- fi
- fi
-
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/laptop-mode" ]; then
- update-rc.d laptop-mode defaults 99 >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d laptop-mode start || exit $?
- else
- /etc/init.d/laptop-mode start || exit $?
- fi
- fi
- # End automatically added section
-
-